package cn.xyhelp.shop.mall.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城商品表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("goods")
public class Goods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    @TableField("name")
    private String name;

    /**
     * 标题图地址
     */
    @TableField("head_img_url")
    private String headImgUrl;

    /**
     * 预览图地址，多张用分号隔开
     */
    @TableField("preview_img_urls")
    private String previewImgUrls;

    /**
     * 详情图地址，多张用分号隔开
     */
    @TableField("detail_img_urls")
    private String detailImgUrls;

    /**
     * 销量
     */
    @TableField("sold_number")
    private Integer soldNumber;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 显示顺序
     */
    @TableField("show_order")
    private Integer showOrder;

    /**
     * 状态：在售，已下架
     */
    @TableField("status")
    private Integer status;

    /**
     * 是否热门
     */
    @TableField("hot")
    private Integer hot;

    /**
     * 评分
     */
    @TableField("star")
    private Integer star;

    /**
     * 标签，多个用分号隔开
     */
    @TableField("tags")
    private String tags;

    @TableField("category_id")
    private Integer categoryId;

    @TableField("store_id")
    private Integer storeId;


}
